import {createRouter,RouteRecordRaw,createWebHistory} from 'vue-router'
const routes: Array<RouteRecordRaw>  = [
    {
        path:'/login',
        name:'login',
        component:()=>import('@/views/Login.vue')

    },
    {
        path:'/register',
        name:'register',
        component:()=>import('@/views/Register.vue')
    },
    {
        path:'/',
        name:'home',
        component:()=>import('@/views/Home.vue'),
        children:[
            {
                path:'/',
                name:'ratio',
                component:()=>import('@/views/Ratio.vue')
            },
            {
                path:"type",
                name:"type",
                component:()=>import('@/views/TypeYear.vue')
            }
        ]
    },
    {
        path:'/center',
        name:'center',
        component:()=>import('@/views/Center.vue')
    }
]
const router = createRouter({
    history:createWebHistory(),
    routes,
})
export default router